package com.wanghaixin.dao;

import com.wanghaixin.pojo.SysRole;
import com.wanghaixin.pojo.SysRoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SysRoleMapper {
    int countByExample(SysRoleExample example);

    int deleteByExample(SysRoleExample example);

    int deleteByPrimaryKey(Long roleId);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    List<SysRole> selectByExample(SysRoleExample example);

    SysRole selectByPrimaryKey(Long roleId);

    int updateByExampleSelective(@Param("record") SysRole record, @Param("example") SysRoleExample example);

    int updateByExample(@Param("record") SysRole record, @Param("example") SysRoleExample example);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);
    
    /*********************************************************************************************************************
     * @Author:  王海新
     * @Date:  10:37  2020/10/25
     * @Version:  1.0.0
     * @Description:  根据用户id查询角色名称
     */
    List<String> findRolesByUserId(@Param("userId") Long userId);
}